package com.paschino.dao;

import org.springframework.stereotype.Repository;

import com.paschino.modal.Role;

@Repository
public class RoleDAOImpl extends AbstractDAO implements RoleDAO {

	@Override
	public Role getRole(int id) {
		return (Role) getSession().load(Role.class, id);
	}

	@Override
	public void addRole(Role role) {
		getSession().saveOrUpdate(role);
	}

}
